<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        table {
            margin: 50px auto;
            width: 1000px;
            height: 440px;
            text-align: center;
            border-spacing: 0;
            border-collapse: collapse;
        }

        .tb {
            border: 1px solid #ccc;
        }

        .id {
            background-color: #eeeeee;
        }
        .bule{
            background-color:#7DB3FA ;
        }
    </style>
</head>

<body>
    <div id="app">
        <table border="1">
            <tr style="background-color: #eeeeee;">
                <td v-for="(value,key) in shuju[0]">
                    {{key}}
                </td>
                <td>等级</td>
            </tr>
            <tr v-for="value in shuju" :class = "value.score >=90 ? 'bule':''">
                <td v-for="item in value">
                    {{item}}
                </td>
                <td v-if="value.score>=90">优秀</td>
                <td v-else-if="value.score>=80 && value.score<90">良好</td>
                <td v-else-if="value.score>=60 && value.score<60">及格</td>
                <td v-else="value<60">不及格</td>
            </tr>
        </table>
    </div>
    <script src='https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js'></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                shuju: [
                    
                    { id: 1, name: '诸葛亮', sex: '男', score: 98 },
                    { id: 2, name: '周瑜', sex: '男', score: 88 },
                    { id: 3, name: '刘阿斗', sex: '男', score: 50 },
                    { id: 4, name: '曹植', sex: '男', score: 90 },
                    { id: 5, name: '张飞', sex: '男', score: 70 },
                    { id: 6, name: '曹丕', sex: '男', score: 55 }
                ]
            },
            methods: {
            },
        })
    </script>

</body>

</html>